package com.itheima.chapter10.thread.demo12;

//线程安全问题-----静态同步方法

public class Demo {
    public static void main(String[] args) {
        MyRunnable mr =new MyRunnable();
        Thread t1 =new Thread(mr,"窗口一");
        Thread t2 =new Thread(mr,"窗口二");
        //Thread t3 =new Thread(mr,"窗口三");
        t1.start();
        t2.start();
       // t3.start();

    }
}
